﻿using IService;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model.DynamicDTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace AlmightyWebAPI.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class DynamicController : ControllerBase
    {
        private readonly IDynamicService _dynamicService;
        public DynamicController(IDynamicService dynamicService)
        {
            _dynamicService = dynamicService;
        }
        /// <summary>
        /// 添加动态板块
        /// </summary>
        /// <param name="dynamicInput"></param>
        /// <returns></returns>
        [HttpPost]
        public bool AddDynamic(DynamicInput dynamicInput)
        {
            return _dynamicService.AddDynamic(dynamicInput);
        }
    }
}
